﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessEntity;
using BusinessService;

namespace BusinessLogic
{
    public class UserRoleManager
    {
        UserRoleService urs = new UserRoleService();
        public int AddNew(UserRole model)
        {
            return urs.AddNew(model);
        }

        public bool Delete(int id)
        {
            return urs.Delete(id);
        }

        public bool Update(UserRole model)
        {
            return urs.Update(model);
        }

        public UserRole Get(int id)
        {
            return urs.Get(id);
        }

        public IEnumerable<UserRole> ListAll()
        {
            return urs.ListAll();
        }

        public string GetRoleNameByRoleId(int roleId)
        {
            return urs.GetRoleNameByRoleId(roleId);
        }
    }
}
